package cn.reinforce.web.fly.config;

import cn.reinforce.web.FateFlyApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author 幻幻Fate
 * @create 2017/11/8
 * @since
 */

/**
 * 兼容war包部署
 * @author 幻幻Fate
 * @create 2018/6/13
 * @since
 */
public class FateServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(FateFlyApplication.class);
    }

}
